package com.jxtpro.controller;

import com.jfinal.core.Controller;
import com.jfinal.kit.Ret;
import com.jxtpro.model.QqSetting;
import com.jxtpro.service.setting.QQSettingService;
/**
 * qq设置页面控制器
 */
public class QQController extends Controller{
	/**
	 * qq设置首页
	 */
	public void index(){
		Ret r = QQSettingService.me.findSet();
		setAttr("qq", r.get("qq"));
		render("/qq.html");
	}
	/**
	 * qq设置地址
	 */
	public void qqSet(){
		Ret r = QQSettingService.me.findSet();
	}
	/**
	 * qq修改地址
	 */
	public void submitQQ(){
		QqSetting q = getModel(QqSetting.class);
	    QQSettingService.me.update(q);
	}
}
